import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
/*CDN形式引入element-ui*/

/*Vue-Quill-Editor 富文本编辑器*/
import VueQuillEditor from 'vue-quill-editor'
// require styles
//通过CDN形式导入
/*import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'*/
Vue.use(VueQuillEditor);


import ZkTable from 'vue-table-with-tree-grid'
Vue.use(ZkTable);

/*Vue.prototype.$message=Message;
Vue.prototype.$confirm=MessageBox.confirm;*/

/*全局样式表*/
import './assets/css/global.css';
/*字体图标*/
import './assets/fonts/iconfont.css';

Vue.config.productionTip = false;


/*全局时间过滤器*/
Vue.filter('dataFormat',function (val) {
  const dt=new Date(val)
  var year=dt.getFullYear();
  var month=(dt.getMonth()+1+'').padStart(2,0);
  var day=(dt.getDay()+1+'').padStart(2,0);
  var hour=(dt.getHours()+1+'').padStart(2,0);
  var minutes=(dt.getMinutes()+1+'').padStart(2,0);
  return `${year}-${month}-${day} ${hour}:${minutes}`;
});

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');
